import { createStore } from "redux";
import {persistStore, persistReducer} from 'redux-persist';
import rootReducer from "./reducers";

import storage from 'redux-persist/lib/storage';
const persistConfig = {
    key: 'root',
    storage: storage,
    blacklist: ['note']
    
};
//持久化的redux
const myPersistReducer = persistReducer(persistConfig, rootReducer)
const store=createStore(myPersistReducer)
export const persistor = persistStore(store)
export default store;

